package com.ddxcloud.movie.dto;

import com.github.binarywang.wxpay.bean.result.enums.TradeTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PayDTO {

    /**
     * 订单ID
     */
    @NotNull(message = "请输入订单ID")
    @Schema(description = "订单ID")
    private Long orderId;

    /**
     * 支付金额（分）
     */
    @NotNull(message = "请输入支付金额")
    @Schema(description = "支付金额（分）")
    private Integer amount;

    /**
     * 付款方式 1.支付宝 2.微信支付
     */
    @NotNull(message = "请输入付款方式")
    @Schema(description = "付款方式")
    private Integer payMethod;

    /**
     * 微信OpenId
     */
    @NotBlank(message = "请输入微信OpenId")
    @Schema(description = "微信OpenId")
    private String openId;

    /**
     * 交易类型
     */
    @Schema(description = "交易类型")
    private TradeTypeEnum tradeType;
}
